package com.bgs.vo;

import com.bgs.pojo.Employee;
import com.bgs.pojo.Money;
import com.bgs.pojo.ResumePicture;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Auther: 梁玉杰
 * @Date: 2022/5/9 16:01
 * @Description: TODO
 */
@Data
public class MoneyVo{

    private Integer limit;
    private Integer page;


    @ApiModelProperty(value = "发放薪资月份")
    private String time;
    private String nam;
    @ApiModelProperty(value = "实发工资")
    private Double shifa;

    private Employee employee;
    private ResumePicture resumePicture;

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "发薪时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    private LocalDateTime paytime;

    @ApiModelProperty(value = "用户id")
    private Integer userid;

    @ApiModelProperty(value = "部门id")
    private Integer depid;

    @ApiModelProperty(value = "工资状态（1确认工资  2 待确认工资）")
    private Integer paytype;

    @ApiModelProperty(value = "基本薪资")
    private Double basic;

    @ApiModelProperty(value = "事假")
    private Double mleave;

    @ApiModelProperty(value = "事假扣款")
    private Double deduction;

    @ApiModelProperty(value = "加班时长")
    private String overtime;

    @ApiModelProperty(value = "加班工资")
    private Double overpay;

    @ApiModelProperty(value = "个税")
    private Double tax;

    @ApiModelProperty(value = "社保")
    private Double social;

    @Override
    public String toString() {
        return "MoneyVo{" +
                "limit=" + limit +
                ", page=" + page +
                ", time='" + time + '\'' +
                ", shifa=" + shifa +
                ", employee=" + employee +
                ", resumePicture=" + resumePicture +
                ", id=" + id +
                ", paytime=" + paytime +
                ", userid=" + userid +
                ", depid=" + depid +
                ", paytype=" + paytype +
                ", basic=" + basic +
                ", mleave=" + mleave +
                ", deduction=" + deduction +
                ", overtime='" + overtime + '\'' +
                ", overpay=" + overpay +
                ", tax=" + tax +
                ", social=" + social +
                '}';
    }
}
